package com.snail.sell.service;

import com.snail.sell.dataobject.OrderMaster;
import com.snail.sell.dto.OrderDTO;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

/**
 * @Author: XJL
 * @Description:
 * @Date: Create in 14:24 2017/12/4
 * @Modified By:
 **/
public interface OrderService {
    //创建订单
    OrderDTO createOrder(OrderDTO orderDTO);

    //查询单个订单
    OrderDTO findOne(String orderId);

    //查询订单列表
    Page<OrderDTO> findOrderList(String buyerOpenid, Pageable pageable);

    //取消订单
    OrderDTO cancle(OrderDTO orderDTO);

    //完结订单
    OrderDTO finish(OrderDTO orderDTO);

    //支付订单
    OrderDTO pay(OrderDTO orderDTO);

    //查询订单列表
    Page<OrderDTO> findOrderList(Pageable pageable);
}
